package com.situ.day22.generic;

import com.situ.day21.reflect.Student;
import com.situ.day5.Teacher;
import org.junit.Test;

public class GenericDemo3<T> {

    public void save(T t) {

    }

    public void update(T t) {

    }

    public void delete(T t) {

    }

    @Test
    public void test1() {
        GenericDemo3<Student> generic1 = new GenericDemo3<>();
        Student student = new Student();
        generic1.save(student);
        generic1.update(student);

        GenericDemo3<Teacher> generic2 = new GenericDemo3<>();
        Teacher teacher = new Teacher();
        generic2.save(teacher);
        generic2.update(teacher);
    }
}
